﻿using System;
using System.Collections.Generic;
using System.Linq;
using System.Web;
using System.Web.Mvc;

namespace SF.WebClient.Controllers
{
    public class BlankController : Controller
    {
        public ViewResult NotFoundIndex()
        {
            return View();
        }

        public ViewResult EasyuiTest()
        {
            return View();
        }

        public PartialViewResult EasyuiPanelPage()
        {
            return PartialView();
        }

        public ViewResult EasyuiIndex()
        {
            return View();
        }

        public ContentResult sub()
        {
            return Content("12");
        }

        public JsonResult test1()
        {
            System.Data.DataTable dt = new System.Data.DataTable();
            dt.Columns.Add("ID");
            dt.Columns.Add("Name");

            System.Data.DataRow row1 = dt.NewRow();
            row1["ID"] = 1;
            row1["Name"] = "我擦";
            dt.Rows.Add(row1);

            string sss = Newtonsoft.Json.JsonConvert.SerializeObject(dt);

            return Json(new { total = 10, rows = new object[] { 1, 2, 3 } });
        }

        public ViewResult EasyuiDemo() 
        {
            return View();
        }
    }
}